package com.benjaminwan.read.free.model.action

import com.benjaminwan.read.free.common.KeyDefinition.findKeyName
import com.benjaminwan.read.free.model.enums.ActionType
import com.squareup.moshi.JsonClass

@JsonClass(generateAdapter = true)
data class KeyboardKeyUp @JvmOverloads constructor(
    val key: Int = 133,
    override val actionType: ActionType = ActionType.KeyboardKeyUp
) : Action() {
    override fun toString(): String {
        return "按键松开:${findKeyName(key)}"
    }
}